<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>订单详情</title>
{literal}
<script language="javascript">
function prnbutt_onclick() { 
	window.print(); 
	document.getElementsById('print2').style.display='none';
	return true; 
} 

function window_onbeforeprint() { 
	prn.style.visibility ="hidden"; 
	return true; 
} 

function window_onafterprint() { 
	prn.style.visibility = "visible"; 
	return true; 
} 
</script>
<style type="text/css">
.style1 {
	font-size: 14pt;
	font-weight: bold;
}
body {
	margin:0 auto;
}
#bodyDiv{ margin:0 auto; text-align:center;}
#TblMainInfo{border-collapse:collapse; border:solid 2px black; width:1000px;}
#TblMainInfo td {FONT-FAMILY:"宋体,Arial";FONT-SIZE:14px;COLOR:#000; border-bottom:solid 1px black; border-right:solid 1px black;}
.foot{ width:600px}
.title {FONT-SIZE: 12pt}
.tr {height:30px;}
#hr{ text-align:center}
</style>
{/literal}
</head>

<body onafterprint="return window_onafterprint()" onbeforeprint="return window_onbeforeprint()">
<div id="bodyDiv">
<div><b>{webcontrol type='GetAppInf' varName='compName'}订单详情</b></div>
<table width="700" align="center"  border="0" cellspacing="0" cellpadding="0"  style="margin-top:10px" id="TblMainInfo">
 
  <tr class="tr">
    <td>下单日期</td>
    <td>缸号</td>
    <td>订单号</td>
    <td >客户(客户单号)</td>
    <td >坯纱规格</td>
    <td >颜色</td>
    <td >色号</td>
    <td >要货数量</td>
    <td >投料数</td>
    <td>已开处方</td>
    <td>处方人</td>
  </tr>
  	{foreach from=$aRow item=item}
  <tr class="tr">
    <td width="120">{$item.dateOrder}</td>
    <td width="50">{$item.vatNum}</td>
    <td width="100">{$item.orderCode}</td>
    <td width="140">{$item.compName}</td>
    <td width="230">{$item.guige}</td>
    <td width="60">{$item.color}</td>
    <td width="40">{$item.colorNum}</td>
    <td width="40">{$item.cntKg}</td>
    <td width="80">{$item.cntPlanTouliao}</td>
    <td width="100">{$item.statue}</td>
    <td width="100">{$item.chufangren}</td>
  </tr>
  {/foreach}
</table>
<div  style="width:98%; text-align:center;margin-top: 20px">
<input name="print" type="button"  onclick="return prnbutt_onclick()" value="打&nbsp;&nbsp;印"/>
</div>
</div>
</body>
</html>
